﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/LOSSite.Master" Inherits="System.Web.Mvc.ViewPage<DataAccessLayer.Models.Reviewer>" %>

<asp:Content ID="cntForm" ContentPlaceHolderID="Content" runat="server">
    <script src="<%= Url.Content("~/Scripts/MicrosoftAjax.js") %>" type="text/javascript"></script>
    <script src="<%= Url.Content("~/Scripts/MicrosoftMvcAjax.js") %>" type="text/javascript"></script>
    <script src="<%= Url.Content("~/Scripts/MicrosoftMvcValidation.js") %>" type="text/javascript"></script>

    <h2>Create</h2>

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>

        <fieldset>
            <legend>Fields</legend>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.AppRouting) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.AppRouting) %>
                <%: Html.ValidationMessageFor(model => model.AppRouting) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.AppApproval) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.AppApproval) %>
                <%: Html.ValidationMessageFor(model => model.AppApproval) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.ApprovalLimit) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.ApprovalLimit) %>
                <%: Html.ValidationMessageFor(model => model.ApprovalLimit) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.BusinessException) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.BusinessException) %>
                <%: Html.ValidationMessageFor(model => model.BusinessException) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.RoleId) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.RoleId) %>
                <%: Html.ValidationMessageFor(model => model.RoleId) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.RoleName) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.RoleName) %>
                <%: Html.ValidationMessageFor(model => model.RoleName) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Version) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Version) %>
                <%: Html.ValidationMessageFor(model => model.Version) %>
            </div>
            
            <p>
                <input type="submit" value="Create" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%: Html.ActionLink("Back to List", "Index") %>
    </div>

</asp:Content>

